package com.dianjing.dianqun.model;

import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.SerializerFeature;

public class User implements java.io.Serializable {
	private static final long serialVersionUID = 5560159532755547595L;

	private Integer userId;

	@JSONField(serialize = false)
	private Integer groupId;

	private String username;

	private String email;

	@JSONField(serialize = false)
	private Date registerTime;

	private String registerIp;

	@JSONField(serialize = false)
	private Date lastLoginTime;

	@JSONField(serialize = false)
	private String lastLoginIp;

	@JSONField(serialize = false)
	private Integer loginCount;

	@JSONField(serialize = false)
	private Integer rank;

	@JSONField(serialize = false)
	private Long uploadTotal;

	@JSONField(serialize = false)
	private Integer uploadSize;

	@JSONField(serialize = false)
	private Date uploadDate;

	@JSONField(serialize = false)
	private Boolean isAdmin;

	@JSONField(serialize = false)
	private Boolean isViewonlyAdmin;

	@JSONField(serialize = false)
	private Boolean isSelfAdmin;

	private Boolean isDisabled;

	private Integer identity;

	private Integer identityId;

	private String tel;

	private String realname;

	@JSONField(serialize = false)
	private String sex;

	@JSONField(serialize = false)
	private Boolean registerAdmin;

	private String telephone;
	
	private String userImg;//手动封装

	private Boolean isBothFriends;// 是否互为好友
	

	@JSONField(serialzeFeatures= {SerializerFeature.WriteNullStringAsEmpty})
	private UserExt ext;
	

	public UserExt getExt() {
		return ext;
	}

	public void setExt(UserExt ext) {
		this.ext = ext;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Integer getGroupId() {
		return groupId;
	}

	public void setGroupId(Integer groupId) {
		this.groupId = groupId;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username == null ? null : username.trim();
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email == null ? null : email.trim();
	}

	public Date getRegisterTime() {
		return registerTime;
	}

	public void setRegisterTime(Date registerTime) {
		this.registerTime = registerTime;
	}

	public String getRegisterIp() {
		return registerIp;
	}

	public void setRegisterIp(String registerIp) {
		this.registerIp = registerIp == null ? null : registerIp.trim();
	}

	public Date getLastLoginTime() {
		return lastLoginTime;
	}

	public void setLastLoginTime(Date lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}

	public String getLastLoginIp() {
		return lastLoginIp;
	}

	public void setLastLoginIp(String lastLoginIp) {
		this.lastLoginIp = lastLoginIp == null ? null : lastLoginIp.trim();
	}

	public Integer getLoginCount() {
		return loginCount;
	}

	public void setLoginCount(Integer loginCount) {
		this.loginCount = loginCount;
	}

	public Integer getRank() {
		return rank;
	}

	public void setRank(Integer rank) {
		this.rank = rank;
	}

	public Long getUploadTotal() {
		return uploadTotal;
	}

	public void setUploadTotal(Long uploadTotal) {
		this.uploadTotal = uploadTotal;
	}

	public Integer getUploadSize() {
		return uploadSize;
	}

	public void setUploadSize(Integer uploadSize) {
		this.uploadSize = uploadSize;
	}

	public Date getUploadDate() {
		return uploadDate;
	}

	public void setUploadDate(Date uploadDate) {
		this.uploadDate = uploadDate;
	}

	public Boolean getIsAdmin() {
		return isAdmin;
	}

	public void setIsAdmin(Boolean isAdmin) {
		this.isAdmin = isAdmin;
	}

	public Boolean getIsViewonlyAdmin() {
		return isViewonlyAdmin;
	}

	public void setIsViewonlyAdmin(Boolean isViewonlyAdmin) {
		this.isViewonlyAdmin = isViewonlyAdmin;
	}

	public Boolean getIsSelfAdmin() {
		return isSelfAdmin;
	}

	public void setIsSelfAdmin(Boolean isSelfAdmin) {
		this.isSelfAdmin = isSelfAdmin;
	}

	public Boolean getIsDisabled() {
		return isDisabled;
	}

	public void setIsDisabled(Boolean isDisabled) {
		this.isDisabled = isDisabled;
	}

	public Integer getIdentity() {
		return identity;
	}

	public void setIdentity(Integer identity) {
		this.identity = identity;
	}

	public Integer getIdentityId() {
		return identityId;
	}

	public void setIdentityId(Integer identityId) {
		this.identityId = identityId;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel == null ? null : tel.trim();
	}

	public String getRealname() {
		return realname;
	}

	public void setRealname(String realname) {
		this.realname = realname == null ? null : realname.trim();
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex == null ? null : sex.trim();
	}

	public Boolean getRegisterAdmin() {
		return registerAdmin;
	}

	public void setRegisterAdmin(Boolean registerAdmin) {
		this.registerAdmin = registerAdmin;
	}

	public String getTelephone() {
		return telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone == null ? null : telephone.trim();
	}

	public Boolean getIsBothFriends() {
		return isBothFriends;
	}

	public void setIsBothFriends(Boolean isBothFriends) {
		this.isBothFriends = isBothFriends;
	}

	public String getUserImg() {
		return userImg;
	}

	public void setUserImg(String userImg) {
		this.userImg = userImg;
	}

}